package Page.DetailPage;

import Page.Page;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Label;

import java.io.IOException;

/**
 * @since 2024-06-05
 * @author yooo_fan
 */
public class DetailPage implements Page {

    public Scene getScene(){
        Parent root = null;
        try{
            FXMLLoader loader = new FXMLLoader(getClass().getResource("DetailPage.fxml"));
            root = loader.load();
        }catch (IOException e){
            System.err.println("Error loading DetailPage.fxml");
        }

        if(root != null)
        {
            return new Scene(root);
        }else{
            return new Scene(new Label("No DetailPage found"));
        }
    }
}
